package persistance.implementation;

import persistance.interfaces.IPersonGroupDao;
import model.PersonGroup;

@Deprecated
public class PersonGroupDaoImpl implements IPersonGroupDao {
	private final IPersonGroupDao mPersonGroupDao;
	
	public PersonGroupDaoImpl(IPersonGroupDao personGroupDao) {
		this.mPersonGroupDao = personGroupDao;
	}
	
	@Override
	public boolean exists(PersonGroup personGroup) {
		return this.mPersonGroupDao.exists(personGroup);
	}

	@Override
	public PersonGroup getPersonGroupByName(String personGroupName) {
		return this.mPersonGroupDao.getPersonGroupByName(personGroupName);
	}

	@Override
	public boolean save(PersonGroup personGroup) {
		return this.mPersonGroupDao.save(personGroup);
	}

	@Override
	public void delete(PersonGroup personGroup) {
		this.mPersonGroupDao.delete(personGroup);
	}

}
